{include file="public/layout" /}
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 
<span class="c-gray en">&gt;</span> 分类管理
<span class="c-gray en">&gt;</span> 添加分类
<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i>
</a>
</nav>
<article class="page-container">
  <form action="{:U('Goods/addEditCategory')}" method="post" class="form form-horizontal" id="form-cate-handle">
    <div class="row cl" style="margin-top: 50px;">
       <div>
      <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>分类名称：</label>
      <div class="formControls col-xs-8 col-sm-9">
      <input style="width: 50%;" class="input-text" type="text" name="name" maxlength="200" value="{$goods_category_info.name ? $goods_category_info.name : ''}">
      </div>
      </div>
    </div>
     <div class="row cl">
       <div>
      <label class="form-label col-xs-4 col-sm-2">上级分类：</label>
      <div class="formControls col-xs-8 col-sm-9">
      <dd class="opt">
          <select name="parent_id" id="parent_id" class="input-text" style="width: 50%;">
            <option value="0">顶级分类</option>
            {$cat_select ? $cat_select|raw : ''}                                         
          </select>
      </dd>
      </div>
      </div>
    </div>
    <div class="row cl">
       <div>
      <label class="form-label col-xs-4 col-sm-2">分类图片：</label>
      <div class="formControls col-xs-8 col-sm-9">
      <dd class="opt">
            <input type="text" class="input-text" name="image" id="image" style="width: 50%;" value="{$goods_category_info.image ? $goods_category_info.image : ''}">
            <input class="btn btn-success radius" type="button" value="上传图片" onClick="GetUploadify(1,'','image','img_call_back')">
          </dd>
      </div>
      </div>
    </div>
    <div class="row cl">
       <div>
      <label class="form-label col-xs-4 col-sm-2">是否显示：</label>
      <div class="formControls col-xs-8 col-sm-9">
      <dd class="opt">
            <input type="radio" class="t_mane" name="is_show" id="is_show" value="1" {if isset($goods_category_info.is_show) && $goods_category_info.is_show == 1} checked="checked" {/if}>是
            <input type="radio" class="t_mane" name="is_show" id="is_show" value="0" {if isset($goods_category_info.is_show) && $goods_category_info.is_show == 0} checked="checked" {/if}>否
          </dd>
      </div>
      </div>
    </div>
    <div class="row cl">
       <div>
      <label class="form-label col-xs-4 col-sm-2">排序：</label>
      <div class="formControls col-xs-8 col-sm-9">
      <input style="width: 50%;" class="input-text" type="text" name="sort_order" maxlength="200" value="{$goods_category_info.sort_order ?  $goods_category_info.sort_order : ''}">
      </div>
      </div>
    </div>
    <div class="row cl">
      <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
        <input type="hidden" name="id" value="{$goods_category_info.id ?  $goods_category_info.id : ''}">
        <button class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存并提交</button>&nbsp;&nbsp;
        <input class="btn btn-success radius" type="button" value="&nbsp;&nbsp;返回上一页&nbsp;&nbsp;" onclick="javascript:history.go(-1);">
      </div>
    </div>
  </form>
</article>
{include file="public/footer" /}
<script type="text/javascript">
    function img_call_back(fileurl_tmp)
    {
      $("#image").val(fileurl_tmp);
    }
</script>
</body>
</html>